<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>reject-方法</title>
</head>
<body>
<script>
  // Promise-reject方法 返回的状态永远都是一个失败的(reject)的Promise对象

  const promise1=new Promise((resolve, reject) => {
    resolve('ok')
  })
  const promise2=new Promise((resolve, reject) => {
    resolve('success')
  })
  let result=Promise.reject([promise1,promise2])
  console.log(result)
</script>
</body>
</html>